package xml.uidElements.entry;

import xml.others.IdManager;

public class DataItem extends AbstractDataItem {

	private String id;
	private String name;
	private String domain;

	// public DataItem(String id, String name) {
	// this.id = id;
	// this.name = name;
	// this.domain = null;
	// }

	public DataItem(String name, String domain) {
		// this.id = id;
		this.id = IdManager.getInstance().getId(IdManager.DATAITEM);
		this.name = name.trim();
		this.domain = domain;
	}

	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

}